<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh sách bài viết</a></div>
     
  </div>
  {$notice}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
      <form action="posts_delete_all.php" method="post">
        <div class="widget-box">
       
          <div class="widget-title">
         
           <div class="buttons" style="position:absolute;right:170px">
	       <a title="Icon Title" class="btn btn-mini" href="posts_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
            <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span>
            <h5>Giới thiệu [Danh sách]</h5>
          </div>
          
             
            <table class="table table-bordered data-table">
              <thead >
                <tr>
                    <th>
                   
                        <input type="checkbox" />
                   
                    </th>
                  <th>Mã</th>
                  <th>Hình</th>
                  <th>Tiêu Đề</th>
                  <th>Thể loại</th>
                  <th>Loại tin</th>
                  <th>Ngày Tạo</th>
                  <th>Lược xem</th>
                  <th>Nổi bật</th>
                  <th>Trạng Thái</th>
                  <th>Thao Tác</th>
                  
                </tr>
              </thead>
            
               
              <tbody >
               {foreach $read_list as $k=>$read}
               {if $k==0}
                <tr class="gradeX" style="background:#A9B9CB">
                {/if}
                <td style="text-align:center">
                   
                        <input type="checkbox" name="data[{$read.id}]" value="{$read.id}" />
                    
                    </td>
               	  <td>{$read.id}</td>
                  <td><img src="/upload/{if $read.image !=''}posts/{$read.day_time|date_format:'%m-%Y'}/{$read.image}{else}icon/no-avatar.jpg{/if}" style="max-width:40px" /></td>
                  <td>{$read.post_name}</td>
                  <td>{$read.category_name}</td>
                  <td>{if $read.type_category==0}Tin Tức{else}Thông Tin{/if}</td>
                  <td>{$read.day_time}</td>
                  <td class="center">{$read.views}</td>
                  <td >
                    <a href="posts_update_highlights.php?id={$read.id}"><i class="icon icon-eye-{if $read.highlights ==1}open{else}close{/if}"></i></a>
                  </td>
                  <td><a href="posts_update_status.php?id={$read.id}"><i class="icon-{if $read.status==1}ok{else}remove{/if}"></i></a></td>
               
                  <td class="center">
                  		<a href="posts_update.php?id={$read.id}"><i class="icon icon-pencil"></i></a>
                        <a href="posts_delete.php?id={$read.id}"><i class="icon icon-remove"></i></a>
                  </td>
                  
                </tr>

                {/foreach}
              </tbody>
              
            </table>
           
          </div>
           </form>
        </div>
        
        
        
        
      </div>
    </div>
  </div>
